package cz.possoft.client.saveload;

import cz.possoft.client.saveload.jaxb.JAXBSaveLoadExecutor;


/**
 * Singleton which is used for obtaining instance of concrete SaveLoadExecutor.
 * 
 * @author mposolda
 */
public class SaveLoadManager {
	
	private static SaveLoadManager instance = new SaveLoadManager();

	// here is instance of concrete executor created.
	//private SaveLoadExecutor executor = new ObjectStreamsSaveLoadExecutor();
	private SaveLoadExecutor executor = new JAXBSaveLoadExecutor();
	
	private SaveLoadManager() {}
	
	public static SaveLoadManager getInstance() {
		return instance;
	}
	
	public SaveLoadExecutor getSaveLoadExecutor() {
		return executor; 
	}

}
